<%@ page language="java" import="java.util.*" contentType="text/html;charset=utf-8" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>考试系统</title>
<link rel="stylesheet" type="text/css" href="<%=basePath %>css/style.css"/>
<script type="text/javascript" src="<%=basePath %>js/js.js"></script>
<script type="text/javascript" src="<%=basePath %>js/jquery.js"></script>
<script type="text/javascript" src="<%=basePath %>js/jquery.json-2.4.min.js"></script>

</head>
<script type="text/javascript">
	function clazzLogin(){
		var name = $("#user").val();
		var password = $("#pwd").val();
		window.location.href="<%=request.getContextPath() %>/Clazz/Login!Login.action?username="+name+"&password="+password;
	}


</script>


<body>
<img src="./images/logo.gif" style="  width: 252px;height: 79px;margin: -86px 0 0 535px;position: absolute;"></img>
 <div id="center" class="main_content">
 <div class="login_pic">
 	<img src="./images/login_bg1.gif" style="margin: -16px;"></img>
 </div>
 <div class="form_content">
<form id="login" name="login" action="./UserAction!login.action" method="post">
<span><b>用户登录</b><span><p>USER LOGIN&gt;&gt;</p>
    <div id="center_middle">
      <div class="user">
        <label>用户名
        <input type="text" name="user.username" id="user" />
        </label>
      </div>
      <div class="user">
        <label>密　码
        <input type="password" name="user.userpassword" id="pwd" />
        </label>
      </div>
     
      <div class="user">
       		<font color="red" size="2">${info }</font>
      </div>
    </div>

    <div id="center_submit">
        <div class="button"> <input value="登录" type="submit" onclick="form_submit()" /> </div>
        <div class="button"> <input value="班级登录" type="submit" onclick="clazzLogin()" /> </div>
    </div>
		<div class="reg_con"><span>点此</span><b><a href="register.jsp">注册</a></b></div>

	</form>
	</div>
    </div>



</body>
</html>
